﻿@model FreeDAM.WebUI.Areas.Admin.ViewModels.AssetFileViewModel

@{
    ViewBag.Title = "Upload";
}

<div>
    <div>
        <h2>Upload</h2>
    </div>
</div>

@using (Html.BeginForm(null, null, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)

    <div class="editor-label">
        @Html.LabelFor(model => model.Name)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)
    </div>
    
    <div class="editor-label">
        @Html.LabelFor(model => model.File)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.File, new { type = "file" })
        @Html.ValidationMessageFor(model => model.File)
    </div>
    
    <div class="editor-field">
        @Html.DropDownListFor(model => model.RenditionGroup, ViewBag.RenditionGroups as SelectList)
        @Html.ValidationMessageFor(model => model.RenditionGroup)
    </div>

    <p>
        <input type="submit" value="Create" />
    </p>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
